Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vecdb caps support #53

Merged
merged 2 commits into from
Jan 12, 2024
Merged

vecdb caps support #53

merged 2 commits into from
Jan 12, 2024

Conversation

valaises
Copy link
Member

No description provided.

@valaises valaises self-assigned this Dec 26, 2023
@valaises valaises added the enhancement New feature or request label Dec 26, 2023
src/vecdb/vecdb.rs Show resolved Hide resolved
src/vecdb/req_client.rs Outdated Show resolved Hide resolved
src/vecdb/req_client.rs Outdated Show resolved Hide resolved
src/caps.rs Outdated Show resolved Hide resolved
src/global_context.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
src/main.rs Outdated Show resolved Hide resolved
src/vecdb/vecdb.rs Outdated Show resolved Hide resolved
src/vecdb/vecdb.rs Outdated Show resolved Hide resolved

pub fn get_embedding(
text: String,
provider_embedding: &String,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style

src/fetch_embedding.rs Outdated Show resolved Hide resolved
@valaises valaises requested a review from olegklimov December 30, 2023 21:38
src/fetch_embedding.rs Outdated Show resolved Hide resolved
src/global_context.rs Outdated Show resolved Hide resolved
src/vecdb/vecdb.rs Outdated Show resolved Hide resolved
@valaises valaises requested review from reymondzzzz and removed request for JegernOUTT January 12, 2024 19:07
# This is the 1st commit message:

WIP

# This is the commit message #2:

fix

# This is the commit message #3:

WIP

# This is the commit message #4:

fixed deps!

# This is the commit message #5:

changes requested by @olegklimov

# This is the commit message #6:

simplified get_embedding_openai_style and get_embedding_hf_style:
removed attempts

# This is the commit message #7:

removed hardcoded hf_url; fixed some naming

# This is the commit message #8:

restoring order in args & naming

# This is the commit message #9:

vecdb is now dynamically reloading

# This is the commit message #10:

implemented changes request from @olegklimov

# This is the commit message #11:

minor

# This is the commit message #12:

minor

# This is the commit message #13:

added endpoint_embeddings_style

# This is the commit message #14:

init

changelist:
* added additional tries to embedding requests'
* added init folders as a vecdb's method. Calling from vecdb_background_reload and LSP::initialize

changelist:
* creating new database if emb_size if different
* if emb_size is equal, deleting embeddings creating for another model

changelist:
* removed remove_where_old_model
* creating dedicated db_dir using key (model_name, embedding_size)

vecdb is reloading only if caps changes. It checks for it every 30s
@valaises valaises force-pushed the dec26-vecdb-caps-support branch from 277b8f4 to 08645a3 Compare January 12, 2024 19:13
@valaises valaises merged commit fde080d into vecdb Jan 12, 2024
0 of 9 checks passed
@valaises valaises deleted the dec26-vecdb-caps-support branch January 12, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants